import axiosConfig from "@/api/axiosConfig";

export default {
  //登录
  login(params){
    return axiosConfig.ncCheckPost(`/login`,params)
  },
  // 查询table数据
  selProductBySelString(params) {
    let {rangeTime, ...rest} = params
    return axiosConfig.ncCheckGet(`/selProductBySelString`,{...rest})
  },
  //导出
  getProductsByParam(params) {
    let {rangeTime, ...rest} = params
    return axiosConfig.ncCheckGet(`/getProductsByParam`,{...rest})
  },
  //根据id查信息
  selProductByProductId(params) {
    return axiosConfig.ncCheckGet(`/selProductByProductId`,params)
  },
  //根据id查信息
  selNcverByProductId(params) {
    return axiosConfig.ncCheckGet(`/selNcverByProductId`,params)
  },
  //根据id查信息
  selMotorByProductId(params) {
    return axiosConfig.ncCheckGet(`/selMotorByProductId`,params)
  },
  //修改信息
  updateProduct(params) {
    return axiosConfig.ncCheckPost(`/updateProduct`,params)
  },
  //修改信息
  deleteProduct(params) {
    return axiosConfig.ncCheckPost(`/deleteProduct`,params)
  },
  //分页查询系统
  selByModulType(params) {
    let {rangeTime, ...rest} = params
    return axiosConfig.ncCheckGet(`/selByModulType`,{...rest})
  },
  // //出货量统计
  // selectAllByTime(params) {
  //   let {rangeTime, ...rest} = params
  //   return axiosConfig.ncCheckGetShipment(`/findStatisticsData`,{...rest})
  // },
  //出货量统计详情
  selectInfo(params) {
    let {rangeTime, ...rest} = params
    return axiosConfig.ncCheckGetShipment(`/selectInfo`,{...rest})
  },
  //出货量趋势图出货统计
  findStatisticsData(params) {
    let {rangeTime, ...rest} = params
    return axiosConfig.ncCheckGetShipment(`/findStatisticsData`,{...rest})
  },

   //查询分公司
   findCompany() {
    return axiosConfig.ncCheckGet(`/findAllCompany`)
  },
  //出货量趋势图出货趋势图
  findTrendChartData(params) {
    let {rangeTime, ...rest} = params
    return axiosConfig.ncCheckGetShipment(`/findTrendChartData`,{...rest})
  },
};
